#ifndef __SPI_HAL__
#define __SPI_HAL__


#define uchar unsigned char

void Spi_init(void);
void spi_enable(void);
uchar spi_send(unsigned char data);
uchar spi_read(void);
uchar nrf_writebuf(uchar reg, uchar *pBuf, uchar len);
uchar nrf_write(uchar adress,uchar data);
uchar nrf_read(uchar adress);
uchar nrf_writebuf(uchar reg, uchar *pBuf, uchar len);
void spi_disable(void);
uchar nrf_wf(unsigned char dat);

#endif

